package com.android.lovely.ui.widget

import android.content.Context
import android.graphics.Canvas
import android.util.AttributeSet
import android.view.View
import com.kotlin.extensions.context.ActivityExt.navBarHeight
import com.kotlin.extensions.context.ActivityExt.statusBarHeight
import com.kotlin.extensions.dimen.Dimension.dp
import com.liupei.shape.widget.ShapeView

class NavBottomView @JvmOverloads constructor(
    context: Context,
    attrs: AttributeSet? = null,
    defStyleAttr: Int = 0
) : ShapeView(context, attrs, defStyleAttr) {

    override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
        super.onMeasure(widthMeasureSpec, MeasureSpec.makeMeasureSpec(if (isInEditMode) 20.dp else navBarHeight, MeasureSpec.EXACTLY))
    }

    override fun onDraw(canvas: Canvas) {

    }
}